#pragma once
#include<iostream>
#include<assert.h>
using namespace std;

class date 
{
public:
	date(int year = 1, int month = 1, int day = 1);

	void print()
	{
		cout << _year << " " << _month << " " << _day << endl;
	}

	date(const date& d)
	{
		_year = d._year;
		_month = d._month;
		_day = d._day;
	}

	bool operator<(const date& d);
	bool operator==(const date& d);
	bool operator<=(const date& d);
	bool operator>(const date& d);
	bool operator>=(const date& d);
	bool operator!=(const date& d);
	int GetMonthDay(int year, int month);
	date& operator+=(int day);
	date operator+(int day);
	date& operator++();
	date operator++(int);




private:
	int _year;
	int _month;
	int _day;
};